<template>
  <div class="root">
    <div class="roomifr">
      <div class="title">
        <div class="block"></div>
        <div class="text">入驻信息</div>
      </div>
      <div class="name">商家名称：<span class="span1">{{Results.name}}</span></div>
      <div class="adress">
        <div class="adrleft">商家地址：</div>
        <div class="adrright">{{Results.address}}</div>
      </div>
      <div class="name">联系电话：<span class="span1">{{Results.phone}}</span></div>
      <div class="name">所属行业：<span class="span1">{{Results.profession}}</span></div>
      <div class="name">覆盖范围：<span class="span1">{{Results.coverRadius}}</span></div>
      <div class="schedule" @click="toservice">联系客服</div>
    </div>
  </div>
</template>

<script>
import { queryorders } from '@/api/payresult'
export default  {
  name: 'QueryPayIndex',
  data () {
    return {
      Results: {}
    }
  },
  created () {
    console.log('链接上带的参数',this.$route.query)
    // 订单查询
    this.queryoder()
  },
  methods: {
    // 查询订单
    async queryoder () {
      const result = await queryorders(this.$route.query.orderNum)
      console.log('查询结果',result.data)
      this.Results = result.data
    },
    // 在线客服
    toservice () {
      window.location.href = 'https://work.weixin.qq.com/kfid/kfc0a6023638057beb8';
    },
  },
}
</script>

<style lang="less" scoped>
.root {
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  font-family: '思源黑体';
  background: linear-gradient(180deg, rgba(35, 98, 238, 1) 0%, rgba(215, 223, 247, 1) 34.72%);
  max-width: 375px;
  overflow: auto;
  .roomifr{
    width: 365px;
    border-radius: 6px;
    padding-bottom: 20px;
    margin: 0 auto;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 1);
    .title{
      width: 350px;
      height: 30px;
      //border: 1px solid black;
      margin: 0 auto;
      margin-bottom: 10px;
      padding-top: 16px;
      display: flex;
      .block{
        width: 3px;
        height: 20px;
        background-color: rgba(35, 98, 238, 1);
        margin: 5px 6px 0 0 ;
      }
      .text{
        width: 171px;
        height: 30px;
        font-size: 18px;
        font-weight: 700;
        line-height: 30px;
        color: rgba(0, 0, 0, 1);
      }
    }
    .name{
      width: 330px;
      height: 30px;
      //background-color: pink;
      margin: 0 auto;
      margin-bottom: 10px;
      font-size: 14px;
      line-height: 30px;
      color: rgba(128, 128, 128, 1);
      .span1{
        color: rgba(0, 0, 0, 1);
      }
    }
    .adress{
      width: 330px;
      margin: 0 auto;
      margin-bottom: 10px;
      font-size: 14px;
      color: rgba(128, 128, 128, 1);
      display: flex;
      .adrleft{
        width: 70px;
        height: 30px;
        line-height: 30px;
        //background-color: #4d97ff;
      }
      .adrright{
        width: 250px;
        color: rgba(0, 0, 0, 1);
        line-height: 30px;
      }
    }
    .schedule{
      width: 250px;
      height: 40px;
      margin: 0 auto;
      margin-top: 20px;
      border-radius: 20px;
      background: linear-gradient(154.49deg, rgba(77, 151, 255, 1) 0%, rgba(32, 122, 247, 1) 100%);
      font-size: 16px;
      font-weight: 700;
      line-height: 40px;
      color: rgba(255, 255, 255, 1);
      text-align: center;
    }
  }
}
</style>
